package org.finesys.common.security.core.annotation;

import org.springframework.security.access.prepost.PreAuthorize;

import java.lang.annotation.*;

/**
 * 判断是否有权限，自定义权限，6.0以下不支持
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@PreAuthorize("@pms.hasPermission('{value}'.split(','))")
public @interface HasPermission {

    String[] value();
}
